package com.cskaoyan.service;

import com.cskaoyan.bean.BaseData;
import com.cskaoyan.bean.bo.RoleParam;
import com.cskaoyan.bean.pojo.MallRole;
import com.cskaoyan.bean.vo.PermissionVO;
import com.cskaoyan.bean.vo.SystemRoleVo;

import java.util.List;

/**
 * @author: Fengyi
 * @description: 管理员
 * @time: 2021/7/9 08:46
 */
public interface RoleService {
    List<SystemRoleVo> queryRoles();

    BaseData<MallRole> queryAllRole(RoleParam roleParam);

    int addRole(MallRole mallRole);

    int updateRole(MallRole mallRole);

    Integer deleteRole(MallRole mallRole);

    String getPermissions(Integer roleId);

    void updatePermissions(PermissionVO permissions);

    Integer updateOrInsertRolePermissions(PermissionVO permissionVO);
}
